package com.user.service.impl;

import com.user.model.entity.ServerInfo;
import com.user.param.Result;
import com.user.repositories.ServerInfoRepository;
import com.user.service.ServerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServerInfoServiceImpl implements ServerInfoService {

    @Autowired
    ServerInfoRepository serverInfoRepository;


    @Override
    public Result serverList() {

        List<ServerInfo> serverInfoList = serverInfoRepository.findAll();
        return new Result(serverInfoList);
    }
}
